/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.agenda.model.persistence;

import com.agenda.model.entity.AmTbMedi;
import com.agenda.model.entity.AmTbPaci;
import com.agenda.model.repository.PacienteRepository;
import java.util.List;

/**
 *
 * @author Ronildo
 */
public class PacienteDAO extends GenericDAO<AmTbPaci, PacienteRepository> implements PacienteRepository {

    public AmTbPaci findById(Long id) {
        return (AmTbPaci)em.createNamedQuery("AmTbMedi.findByCdMedi").
                setParameter("cdMedi", id).getSingleResult();
        
    }

    @Override
    public List<AmTbMedi> list(AmTbPaci amTbPaci) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<AmTbMedi> listAll() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
